﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using VM.Entity.EntityMap.User;

namespace VM.Entity.EntityDto.Goods
{
    /// <summary>
    /// 商品类别
    /// </summary>
    [SugarTable("sys_goodsType")]
    public class getGoodsTypeListDto
    {
        #region Model
        private int _id;
        private int _billstatus;
        private string _name;
        private string _img;
        private int _createuserid;
        private DateTime _createdate;
        private int _updateuserid;
        private DateTime _updatedate;
        private string _description;

        /// <summary>
        /// 
        /// </summary>
        /// <summary>
        /// 内码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public int billStatus
        {
            set { _billstatus = value; }
            get { return _billstatus; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string img
        {
            set { _img = value; }
            get { return _img; }
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public int createUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }

        /// <summary>
        /// 创建人信息
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(createUserId))]
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        [JsonIgnore]
        public sys_user? createUser { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public DateTime createDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public int updateUserId
        {
            set { _updateuserid = value; }
            get { return _updateuserid; }
        }

        /// <summary>
        /// 创建人信息
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(updateUserId))]
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        [JsonIgnore]
        public sys_user? updateUser { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public DateTime updateDate
        {
            set { _updatedate = value; }
            get { return _updatedate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string description
        {
            set { _description = value; }
            get { return _description; }
        }

        public int isTop { get; set; }


        public int isHomeTuiJian { get; set; }


        #endregion Model


    }
}
